import cutpage from '../1-cutpage.vue'
import nestRoute from '../2-nestRoute.vue'
// 引入第一题的四个分页面
import  index from '../views/index.vue'
import classify from '../views/classify.vue'
import order from '../views/order.vue'
import my from '../views/my.vue'

// 引入第二题的三个分页面
import index2 from '../views/index2.vue'
import news from '../views/news.vue'
import sports from '../views/sports.vue'

// 引入二级嵌套下面的三个体育分页面
import index3 from '../views/sport/index.vue'
import inland from '../views/sport/inland.vue'
import foreign from '../views/sport/foreign.vue'

// 引入第三题三个主页面
import levrouter from '../3-lev3router.vue'
import ui_router from '../components/ui_router.vue'
import contacts from '../components/contacts.vue'
import about from '../components/about.vue'

// 引入contacts下面的分页面
import allcontacts from '../components/allcontacts.vue'
import alice from '../components/alice.vue'
import bob from '../components/Bob.vue'

// 引入bob下 两个分页面
import blog from '../components/blog.vue'
import fax from '../components/fax.vue'

export default[
    {
        path:"day07/1-cutpage",
        redirect:"day07/1-cutpage/views/index"
    },
    {
        path:"day07/2-nestRoute",
        redirect:"day07/2-nestRoute/views/index2"
    },
    {
        path:"day07/3-lev3router",
        redirect:"day07/3-lev3router/components/ui_router"
    },
    {
        path:"day07/1-cutpage",
        component:cutpage,
        children:[
            {
             path:"views/index",
             component:index
            },
            {
                path:"views/classify",
                component:classify
            },
            {
                path:"views/order",
                component:order
            },
            {
                path:"views/my",
                component:my
            }
        ]
    },
    {
    path:"day07/2-nestRoute",
    component:nestRoute,
    children:[{
        path:"views/index2",
        component:index2
    },
    {
        path:"views/news",
        component:news
    },
    {
        path:"views/sports",
        component:sports
    },
    {
        path:"views/sport",
        redirect:"day07/2-nestRoute/views/sport/index"
    },
    {
        path:"views/sport/index",
        component:index3
    },
    {
        path:"views/sport/inland",
        component:inland
    },
    {
        path:"views/sport/foreign",
        component:foreign
    }
]
    },
    {
    path:"day07/3-lev3router",
    component:levrouter,
    children:[
        {
            name:'ui_router',
            path:"components/ui_router",
            component:ui_router
        },
        {
            name:'contacts',
            path:"components/contacts",
            component:contacts,
            children:[{
                name:'allcontacts',
                path:'allcontacts',
                component:allcontacts
            },
            {
                name:'alice',
                path:'alice',
                component:alice
            },
            {
                name:'bob',
                path:'bob',
                component:bob,
                children:[
                    {
                        name:'blog',
                        path:"blog",
                        component:blog
                    },
                    {
                        name:'fax',
                        path:"fax",
                        component:fax
                    }
                ]
            }
        ]
        },
        {
            name:'about',
            path:"components/about",
            component:about
        }
    ]
    }
]